﻿namespace Community.CsharpSqlite.Entity
{
    public class SrcList
    {
        public SrcList_item[] a; /* One entry for each identifier on the list */
        public short nAlloc; /* Number of entries allocated in a[] below */
        public short nSrc; /* Number of tables or subqueries in the FROM clause */

        public SrcList Copy()
        {
            if (this == null)
                return null;
            else
            {
                var cp = (SrcList) MemberwiseClone();
                if (a != null) a.CopyTo(cp.a, 0);
                return cp;
            }
        }
    };
}